package com.zeta.demo.mq;

import com.zeta.api.config.DefaultFeignConfiguration;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.stereotype.Repository;

/**
 * 消息队列 Demo启动类
 *
 * @author gcc
 */
@ComponentScan(basePackages = {"com.zeta", "org.zetaframework"})
@MapperScan(value= {"com.zeta.**.dao"}, annotationClass = Repository.class)
@EnableFeignClients(basePackages = {"com.zeta.api.client"}, defaultConfiguration = DefaultFeignConfiguration.class)
@EnableDiscoveryClient
@SpringBootApplication
public class DemoMQApp {
    public static void main(String[] args) {
        SpringApplication.run(DemoMQApp.class, args);
    }
}
